var config = require('../../../../../config');
var filter = require('../../../../../framework/filter');
var mongoose = require('../../../../../framework/mongoose');

var contactUsSchema = new mongoose.Schema({
    name: String,
    address: String,
    email: String,

    telephone: { type: String, ignoreIfNull: true },
    website: { type: String, ignoreIfNull: true },
    image:  { type: String, ignoreIfNull: true },

    status: Number,
    subscription: { type: mongoose.Schema.Types.ObjectId, ref: 'app_subscription' }
}, config.schemaOptions);
contactUsSchema.virtual('id').get(function() {
    return this._id;
});
exports.CmsContactUs = mongoose.model('cms_contact_us', contactUsSchema);
